<template>
  <div class="oneshop">
    <img :src="img" alt />
    <div class="text">
      <div class="name">{{name}}</div>
      <div class="score">
        <img class="start" src="chenkong/imgs/shopcenter/start.gif" alt />
        <img class="start" src="chenkong/imgs/shopcenter/start.gif" alt />
        <img class="start" src="chenkong/imgs/shopcenter/start.gif" alt />
        <img class="start" src="chenkong/imgs/shopcenter/start.gif" alt />
        <img class="start" src="chenkong/imgs/shopcenter/start.gif" alt />
        <span>￥{{price}}/人</span>
      </div>
      <div class="adress">
        <p>{{adress}}</p>
        <span>西安</span>
      </div>
      <div class="tittle">"{{tittle}}"</div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["img", "name", "price", "adress", "tittle"]
};
</script>

<style lang="scss" scoped>
.oneshop {
  width: 46.4vw;
  height: 57.6vw;
  border-radius: 1.333vw;
  margin-bottom: 1.333vw;
  overflow: hidden;
  font-size: 3.2vw;
  img {
    width: 100%;
    height: 33.333vw;
  }
  .text {
    width: 85%;
    margin: 1.333vw auto;
    line-height: 4.8vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    .score {
      font-size: 2.667vw;
      .start {
        width: 2.667vw;
        margin-right: 0.267vw;
        height: 2.667vw;
      }
      span {
        margin-left: 1.333vw;
      }
    }
    .adress {
      font-size: 2.133vw;
      color: #9b9898;
      display: flex;
      justify-content: space-between;
    }
    .tittle {
      font-size: 2.133vw;
    }
  }
}
</style>